package com.zb.vo;

import com.zb.annotation.NumberPattern;
import com.zb.result.PageUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2024/1/11 0011
 **/
@Data
@ApiModel("在库编码搜索对象")
public class CodeInStoreListSearchVo extends PageUtil {

    @NotNull(message = "类型不能为空")
    @NumberPattern(regexp = "^[1|2]$", required = true, message = "类型参数不合法")
    @ApiModelProperty(value = "类型:1-成品,2-配件", required = true, example = "1")
    private Integer type;

    @NotNull(message = "商品参数不能为空")
    @ApiModelProperty(value = "商品ID", required = true)
    private Long goodsId;

    @NotNull(message = "商品规格参数不能为空")
    @ApiModelProperty(value = "商品规格ID", required = true)
    private Long goodsSpecId;

    @ApiModelProperty(value = "仓库ID，入库商品一物一码查询不必传")
    private Long storeId;

    @ApiModelProperty(value = "仓库仓位ID，入库商品一物一码查询不必传")
    private Long storePositionId;

    @ApiModelProperty(value = "搜索关键词:一物一码")
    private String keyword;
}
